# -*- coding: utf-8 -*-
# ===========================================
# @Time    : 2021/9/14 15:09 
# @Author  : shutao
# @FileName: analyze_dataset.py
# @remark  : 
# 
# @Software: PyCharm
# Github 　： https://github.com/NameLacker
# ===========================================

import paddle
import os


def main():
    root_path = "E:\\work\\Dataset\\lfw"

    num_person = []
    for idx, person in enumerate(os.listdir(root_path)):
        person_path = os.path.join(root_path, person)
        n_p = len(os.listdir(person_path))
        num_person.append(n_p) if n_p > 1 else None
        print(idx, person, n_p)
    num_person.sort()
    num_person.reverse()
    print(num_person)
    print(len(num_person))


def read_dwg():
    file_path = "E:\\GoogleDownload\\tmp.dwg"
    with open(file_path, 'rb') as f:
        maps = f.readlines()
    pass


if __name__ == '__main__':
    # main()
    read_dwg()
